// pages/mechPop/mechPop.js
var t = getApp();

Component({
  properties: {
    com_data: {
      type: Object,
      value: ""
    },
    show_com: {
      type: Number,
      value: "0"
    },
    pop_show: {
      type: Boolean,
      value: !0
    }
  },
  data: {
    show_else: false
  },
  ready: function(){
    
  },
  methods: {
    return:function(){},
    close_pop:function(){
      var pop_show = !this.properties.pop_show;
      this.triggerEvent('closePop', {pop_show})
    },
    // 优惠券触底
    scroll_pref_bottom:function(){
      this.triggerEvent('prefScroll',1)
    },
    // 优惠券领取
    get_pref:function(e){
      var index=e.currentTarget.dataset.index;
      this.triggerEvent("getPref",{index})
    },
  },
});